.class public Lcom/example/m6wmr/DishesParticularActivity;
.super Landroid/app/Activity;
.source "DishesParticularActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/DishesParticularActivity$MyAdapter;,
        Lcom/example/m6wmr/DishesParticularActivity$MyPageChangeListener;,
        Lcom/example/m6wmr/DishesParticularActivity$mOncliclistener;
    }
.end annotation


# static fields
.field private static dishes_particular_top:Landroid/view/View;

.field public static h:Landroid/os/Handler;

.field public static headheight:I


# instance fields
.field private AnimationDuration:I

.field private anim_mask_layout:Landroid/view/ViewGroup;

.field attr1:Ljava/lang/String;

.field attr2:Ljava/lang/String;

.field bb:Lbean/GoodsBean;

.field private buyImg:Landroid/widget/ImageView;

.field private ca:Ldata/PupCarAdapter2;

.field private close:Landroid/widget/TextView;

.field private closebtn:Landroid/widget/LinearLayout;

.field private context:Landroid/content/Context;

.field private currentItem:I

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private del:Landroid/widget/TextView;

.field private dotViewsList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/view/View;",
            ">;"
        }
    .end annotation
.end field

.field private evaluateBeans:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/EvaluateBean;",
            ">;"
        }
    .end annotation
.end field

.field flag:I

.field goodsid:Ljava/lang/String;

.field private goodsls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private helper:Ldbclass/DBOpenHelper;

.field imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field ind:I

.field private iv:Landroid/widget/ImageView;

.field private iv_add:Landroid/widget/ImageView;

.field private iv_car:Landroid/widget/ImageView;

.field private iv_del:Landroid/widget/ImageView;

.field lb:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/widget/TextView;",
            ">;"
        }
    .end annotation
.end field

.field lb2:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/widget/TextView;",
            ">;"
        }
    .end annotation
.end field

.field private list:Landroid/widget/ListView;

.field listattr:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field listcom:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field listdet:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field listdet2:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field listimg:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/Shopimg;",
            ">;"
        }
    .end annotation
.end field

.field listpro:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ProductBean;",
            ">;"
        }
    .end annotation
.end field

.field private ll_guige:Landroid/widget/LinearLayout;

.field llp:Landroid/widget/LinearLayout;

.field private lv_dishes_particular:Landroid/widget/ListView;

.field m:Lmyapp/MyApp;

.field open:Ljava/lang/String;

.field pbid:Ljava/lang/String;

.field pid:Ljava/lang/String;

.field private price:Ljava/lang/String;

.field private final requestcode:I

.field search:Landroid/widget/RelativeLayout;

.field shopid:Ljava/lang/String;

.field private shopname:Ljava/lang/String;

.field private sumcart:I

.field private sumcartcost:F

.field private tempgd:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private tv_bag:Landroid/widget/TextView;

.field private tv_count:Landroid/widget/TextView;

.field private tv_eva:Landroid/widget/TextView;

.field private tv_name:Landroid/widget/TextView;

.field private tv_num:Landroid/widget/TextView;

.field private tv_price:Landroid/widget/TextView;

.field private tv_sal:Landroid/widget/TextView;

.field private tv_total:Landroid/widget/TextView;

.field private tv_total1:Landroid/widget/TextView;

.field private viewList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/widget/ImageView;",
            ">;"
        }
    .end annotation
.end field

.field private viewPager:Landroid/support/v4/view/ViewPager;

.field private wb_foodsparticular:Landroid/webkit/WebView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 101
    const/4 v0, 0x0

    sput-object v0, Lcom/example/m6wmr/DishesParticularActivity;->h:Landroid/os/Handler;

    .line 132
    const/4 v0, 0x0

    sput v0, Lcom/example/m6wmr/DishesParticularActivity;->headheight:I

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 81
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 99
    iput-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->m:Lmyapp/MyApp;

    .line 105
    iput-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    .line 115
    iput v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->ind:I

    .line 119
    iput v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->flag:I

    .line 124
    const/16 v0, 0x4ce

    iput v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->requestcode:I

    .line 128
    const/16 v0, 0x320

    iput v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->AnimationDuration:I

    .line 130
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->shopname:Ljava/lang/String;

    .line 142
    iput v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->currentItem:I

    .line 81
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/support/v4/view/ViewPager;
    .locals 1

    .prologue
    .line 138
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/DishesParticularActivity;I)V
    .locals 0

    .prologue
    .line 142
    iput p1, p0, Lcom/example/m6wmr/DishesParticularActivity;->currentItem:I

    return-void
.end method

.method static synthetic access$10(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 90
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_name:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$11(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 90
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_eva:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$12(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 83
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$13(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 84
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->ll_guige:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$14(Lcom/example/m6wmr/DishesParticularActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 97
    iput-object p1, p0, Lcom/example/m6wmr/DishesParticularActivity;->price:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$15(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_price:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$16(Lcom/example/m6wmr/DishesParticularActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 97
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->price:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$17(Lcom/example/m6wmr/DishesParticularActivity;)V
    .locals 0

    .prologue
    .line 857
    invoke-direct {p0}, Lcom/example/m6wmr/DishesParticularActivity;->getShopPrice()V

    return-void
.end method

.method static synthetic access$18(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_add:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$19(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_bag:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/DishesParticularActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 137
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->dotViewsList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$20(Lcom/example/m6wmr/DishesParticularActivity;)V
    .locals 0

    .prologue
    .line 827
    invoke-direct {p0}, Lcom/example/m6wmr/DishesParticularActivity;->clera()V

    return-void
.end method

.method static synthetic access$21(Lcom/example/m6wmr/DishesParticularActivity;)V
    .locals 0

    .prologue
    .line 846
    invoke-direct {p0}, Lcom/example/m6wmr/DishesParticularActivity;->clera2()V

    return-void
.end method

.method static synthetic access$22(Lcom/example/m6wmr/DishesParticularActivity;)V
    .locals 0

    .prologue
    .line 1507
    invoke-direct {p0}, Lcom/example/m6wmr/DishesParticularActivity;->initAdapter()V

    return-void
.end method

.method static synthetic access$23(Lcom/example/m6wmr/DishesParticularActivity;)I
    .locals 1

    .prologue
    .line 142
    iget v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->currentItem:I

    return v0
.end method

.method static synthetic access$24(Lcom/example/m6wmr/DishesParticularActivity;)I
    .locals 1

    .prologue
    .line 106
    iget v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    return v0
.end method

.method static synthetic access$25(Lcom/example/m6wmr/DishesParticularActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 130
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->shopname:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$26(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 144
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->list:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic access$27(Lcom/example/m6wmr/DishesParticularActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 1664
    invoke-direct {p0}, Lcom/example/m6wmr/DishesParticularActivity;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$28(Lcom/example/m6wmr/DishesParticularActivity;Ldata/PupCarAdapter2;)V
    .locals 0

    .prologue
    .line 147
    iput-object p1, p0, Lcom/example/m6wmr/DishesParticularActivity;->ca:Ldata/PupCarAdapter2;

    return-void
.end method

.method static synthetic access$29(Lcom/example/m6wmr/DishesParticularActivity;)Ldata/PupCarAdapter2;
    .locals 1

    .prologue
    .line 147
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->ca:Ldata/PupCarAdapter2;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_num:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$30(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$31(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 145
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->del:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$32(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 103
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method

.method static synthetic access$33(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 146
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->close:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$34(Lcom/example/m6wmr/DishesParticularActivity;)Ldbclass/DBOpenHelper;
    .locals 1

    .prologue
    .line 104
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->helper:Ldbclass/DBOpenHelper;

    return-object v0
.end method

.method static synthetic access$35(Lcom/example/m6wmr/DishesParticularActivity;Landroid/database/Cursor;)V
    .locals 0

    .prologue
    .line 105
    iput-object p1, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    return-void
.end method

.method static synthetic access$36(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/database/Cursor;
    .locals 1

    .prologue
    .line 105
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    return-object v0
.end method

.method static synthetic access$37(Lcom/example/m6wmr/DishesParticularActivity;I)V
    .locals 0

    .prologue
    .line 106
    iput p1, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    return-void
.end method

.method static synthetic access$38(Lcom/example/m6wmr/DishesParticularActivity;)F
    .locals 1

    .prologue
    .line 107
    iget v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    return v0
.end method

.method static synthetic access$39(Lcom/example/m6wmr/DishesParticularActivity;F)V
    .locals 0

    .prologue
    .line 107
    iput p1, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    return-void
.end method

.method static synthetic access$4(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$40(Lcom/example/m6wmr/DishesParticularActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 118
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->tempgd:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_del:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/DishesParticularActivity;)V
    .locals 0

    .prologue
    .line 902
    invoke-direct {p0}, Lcom/example/m6wmr/DishesParticularActivity;->setData()V

    return-void
.end method

.method static synthetic access$7()Landroid/view/View;
    .locals 1

    .prologue
    .line 87
    sget-object v0, Lcom/example/m6wmr/DishesParticularActivity;->dishes_particular_top:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 85
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->lv_dishes_particular:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_sal:Landroid/widget/TextView;

    return-object v0
.end method

.method private addViewToAnimLayout(Landroid/view/ViewGroup;Landroid/view/View;[I)Landroid/view/View;
    .locals 5
    .param p1, "vg"    # Landroid/view/ViewGroup;
    .param p2, "view"    # Landroid/view/View;
    .param p3, "location"    # [I

    .prologue
    const/4 v4, -0x2

    .line 809
    const/4 v3, 0x0

    aget v1, p3, v3

    .line 810
    .local v1, "x":I
    const/4 v3, 0x1

    aget v2, p3, v3

    .line 811
    .local v2, "y":I
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v4, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 814
    .local v0, "lp":Landroid/widget/LinearLayout$LayoutParams;
    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    .line 815
    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    .line 816
    invoke-virtual {p2, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 817
    return-object p2
.end method

.method private clera()V
    .locals 5

    .prologue
    const/16 v4, 0xa

    .line 828
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lt v0, v1, :cond_0

    .line 837
    return-void

    .line 830
    :cond_0
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const-string v2, "0"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 831
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v2, 0x7f02005d

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    .line 832
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const/high16 v2, -0x1000000

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 833
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-virtual {v1, v4, v4, v4, v4}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 835
    const-string v1, "lb.size()"

    new-instance v2, Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 828
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private clera2()V
    .locals 4

    .prologue
    const/16 v3, 0xa

    .line 847
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb2:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lt v0, v1, :cond_0

    .line 855
    return-void

    .line 849
    :cond_0
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb2:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const-string v2, "0"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 850
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb2:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v2, 0x7f02005d

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    .line 851
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb2:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const/high16 v2, -0x1000000

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 853
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb2:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-virtual {v1, v3, v3, v3, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 847
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private click()V
    .locals 3

    .prologue
    .line 840
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lt v0, v1, :cond_0

    .line 844
    return-void

    .line 842
    :cond_0
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setClickable(Z)V

    .line 840
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private createAnimLayout()Landroid/view/ViewGroup;
    .locals 5

    .prologue
    const/4 v4, -0x1

    .line 794
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    check-cast v3, Landroid/app/Activity;

    invoke-virtual {v3}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v3

    .line 795
    invoke-virtual {v3}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v2

    .line 794
    check-cast v2, Landroid/view/ViewGroup;

    .line 796
    .local v2, "rootView":Landroid/view/ViewGroup;
    new-instance v0, Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    invoke-direct {v0, v3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 797
    .local v0, "animLayout":Landroid/widget/LinearLayout;
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v4, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 800
    .local v1, "lp":Landroid/widget/LinearLayout$LayoutParams;
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 801
    const v3, 0x7fffffff

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setId(I)V

    .line 802
    const v3, 0x106000d

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 803
    invoke-virtual {v2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 804
    return-object v0
.end method

.method private getAllGoodsBeanList()Ljava/util/List;
    .locals 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation

    .prologue
    .line 1667
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 1669
    .local v0, "GoodsBeans":Ljava/util/List;, "Ljava/util/List<Lbean/GoodsBean;>;"
    iget-object v10, p0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "select * from cart where shopid="

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v12, p0, Lcom/example/m6wmr/DishesParticularActivity;->shopid:Ljava/lang/String;

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    const/4 v12, 0x0

    invoke-virtual {v10, v11, v12}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v2

    .line 1670
    .local v2, "cursor":Landroid/database/Cursor;
    :goto_0
    invoke-interface {v2}, Landroid/database/Cursor;->moveToNext()Z

    move-result v10

    if-nez v10, :cond_0

    .line 1690
    return-object v0

    .line 1671
    :cond_0
    new-instance v5, Lbean/GoodsBean;

    invoke-direct {v5}, Lbean/GoodsBean;-><init>()V

    .line 1672
    .local v5, "goodsBean":Lbean/GoodsBean;
    const-string v10, "goodsid"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 1673
    .local v4, "goodid":Ljava/lang/String;
    const-string v10, "shopid"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    .line 1674
    .local v9, "shopid":Ljava/lang/String;
    const-string v10, "goodsname"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 1675
    .local v7, "goodsname":Ljava/lang/String;
    const-string v10, "goodscount"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 1676
    .local v1, "count":Ljava/lang/String;
    const-string v10, "goodscost"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 1677
    .local v6, "goodscost":Ljava/lang/String;
    const-string v10, "pid"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    .line 1678
    .local v8, "pid":Ljava/lang/String;
    const-string v10, "pnum"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 1680
    .local v3, "ggnum":Ljava/lang/String;
    invoke-virtual {v5, v4}, Lbean/GoodsBean;->setId(Ljava/lang/String;)V

    .line 1681
    invoke-virtual {v5, v9}, Lbean/GoodsBean;->setShopid(Ljava/lang/String;)V

    .line 1682
    invoke-virtual {v5, v7}, Lbean/GoodsBean;->setname(Ljava/lang/String;)V

    .line 1683
    invoke-virtual {v5, v1}, Lbean/GoodsBean;->setcounts(Ljava/lang/String;)V

    .line 1684
    invoke-static {v6}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Float;->floatValue()F

    move-result v10

    invoke-virtual {v5, v10}, Lbean/GoodsBean;->setcost(F)V

    .line 1685
    invoke-virtual {v5, v8}, Lbean/GoodsBean;->setGgid(Ljava/lang/String;)V

    .line 1686
    invoke-virtual {v5, v3}, Lbean/GoodsBean;->setGgnum(Ljava/lang/String;)V

    .line 1688
    invoke-interface {v0, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method public static getDefaultOptions()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;
    .locals 2

    .prologue
    const v1, 0x7f020047

    .line 1464
    new-instance v0, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    .line 1465
    .local v0, "b":Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageForEmptyUri(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1466
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnFail(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1467
    const v1, 0x7f0200a2

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnLoading(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1468
    sget-object v1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->resetViewBeforeLoading(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1469
    sget-object v1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisk(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1470
    sget-object v1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1471
    sget-object v1, Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;->EXACTLY_STRETCHED:Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->imageScaleType(Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1472
    sget-object v1, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->bitmapConfig(Landroid/graphics/Bitmap$Config;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v1

    return-object v1
.end method

.method private getShopPrice()V
    .locals 7

    .prologue
    .line 859
    const-string v1, ""

    .line 860
    .local v1, "guigename":Ljava/lang/String;
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_0
    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    if-lt v2, v4, :cond_0

    .line 900
    return-void

    .line 862
    :cond_0
    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb:Ljava/util/List;

    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    invoke-virtual {v4}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v4

    const-string v5, "1"

    invoke-virtual {v4, v5}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 864
    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb:Ljava/util/List;

    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    invoke-virtual {v4}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v4

    invoke-interface {v4}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    .line 866
    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb2:Ljava/util/List;

    if-eqz v4, :cond_1

    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb2:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    if-nez v4, :cond_5

    .line 867
    :cond_1
    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity;->listpro:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_2
    :goto_1
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-nez v5, :cond_4

    .line 860
    :cond_3
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 867
    :cond_4
    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/ProductBean;

    .line 868
    .local v0, "e":Lbean/ProductBean;
    invoke-virtual {v0}, Lbean/ProductBean;->getAttrname()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 869
    iget-object v5, p0, Lcom/example/m6wmr/DishesParticularActivity;->listpro:Ljava/util/List;

    invoke-interface {v5, v0}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I

    move-result v5

    iput v5, p0, Lcom/example/m6wmr/DishesParticularActivity;->ind:I

    .line 870
    invoke-virtual {v0}, Lbean/ProductBean;->getCost()Ljava/lang/String;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6wmr/DishesParticularActivity;->price:Ljava/lang/String;

    .line 871
    iget-object v5, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_price:Landroid/widget/TextView;

    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->price:Ljava/lang/String;

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 872
    invoke-virtual {v0}, Lbean/ProductBean;->getId()Ljava/lang/String;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6wmr/DishesParticularActivity;->pbid:Ljava/lang/String;

    goto :goto_1

    .line 878
    .end local v0    # "e":Lbean/ProductBean;
    :cond_5
    const/4 v3, 0x0

    .local v3, "j":I
    :goto_2
    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb2:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    if-ge v3, v4, :cond_3

    .line 879
    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb2:Ljava/util/List;

    invoke-interface {v4, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    invoke-virtual {v4}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v4

    const-string v5, "1"

    invoke-virtual {v4, v5}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_7

    .line 880
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ","

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 881
    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity;->lb2:Ljava/util/List;

    invoke-interface {v4, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    invoke-virtual {v4}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v4

    invoke-interface {v4}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    .line 880
    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 882
    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity;->listpro:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_6
    :goto_3
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-nez v5, :cond_8

    .line 878
    :cond_7
    add-int/lit8 v3, v3, 0x1

    goto :goto_2

    .line 882
    :cond_8
    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/ProductBean;

    .line 883
    .restart local v0    # "e":Lbean/ProductBean;
    invoke-virtual {v0}, Lbean/ProductBean;->getAttrname()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_6

    .line 884
    iget-object v5, p0, Lcom/example/m6wmr/DishesParticularActivity;->listpro:Ljava/util/List;

    invoke-interface {v5, v0}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I

    move-result v5

    iput v5, p0, Lcom/example/m6wmr/DishesParticularActivity;->ind:I

    .line 885
    invoke-virtual {v0}, Lbean/ProductBean;->getCost()Ljava/lang/String;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6wmr/DishesParticularActivity;->price:Ljava/lang/String;

    .line 886
    iget-object v5, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_price:Landroid/widget/TextView;

    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->price:Ljava/lang/String;

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 887
    invoke-virtual {v0}, Lbean/ProductBean;->getId()Ljava/lang/String;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6wmr/DishesParticularActivity;->pbid:Ljava/lang/String;

    goto :goto_3
.end method

.method private initAdapter()V
    .locals 4

    .prologue
    .line 1510
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/example/m6wmr/DishesParticularActivity$MyAdapter;

    iget-object v2, p0, Lcom/example/m6wmr/DishesParticularActivity;->listimg:Ljava/util/List;

    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->viewList:Ljava/util/List;

    invoke-direct {v1, p0, v2, v3}, Lcom/example/m6wmr/DishesParticularActivity$MyAdapter;-><init>(Lcom/example/m6wmr/DishesParticularActivity;Ljava/util/List;Ljava/util/List;)V

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    .line 1511
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/example/m6wmr/DishesParticularActivity$6;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/DishesParticularActivity$6;-><init>(Lcom/example/m6wmr/DishesParticularActivity;)V

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    .line 1538
    return-void
.end method

.method private initData()V
    .locals 1

    .prologue
    .line 922
    iput-object p0, p0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    .line 923
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->evaluateBeans:Ljava/util/ArrayList;

    .line 925
    return-void
.end method

.method private initView()V
    .locals 8

    .prologue
    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 955
    const v3, 0x7f0c0001

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->closebtn:Landroid/widget/LinearLayout;

    .line 956
    const v3, 0x7f0c0075

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ListView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->lv_dishes_particular:Landroid/widget/ListView;

    .line 957
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    .line 958
    const v4, 0x7f03005d

    .line 957
    invoke-static {v3, v4, v6}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    sput-object v3, Lcom/example/m6wmr/DishesParticularActivity;->dishes_particular_top:Landroid/view/View;

    .line 960
    sget-object v3, Lcom/example/m6wmr/DishesParticularActivity;->dishes_particular_top:Landroid/view/View;

    .line 961
    const v4, 0x7f0c024a

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/webkit/WebView;

    .line 960
    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->wb_foodsparticular:Landroid/webkit/WebView;

    .line 963
    const v3, 0x7f0c007e

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lmyview/BadgeView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_num:Landroid/widget/TextView;

    .line 964
    const v3, 0x7f0c0078

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total:Landroid/widget/TextView;

    .line 965
    const v3, 0x7f0c0077

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total1:Landroid/widget/TextView;

    .line 966
    const v3, 0x7f0c0079

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_bag:Landroid/widget/TextView;

    .line 967
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    const-string v4, "pscost"

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 968
    .local v1, "sharedPreferences":Landroid/content/SharedPreferences;
    const-string v3, "ps"

    const-string v4, ""

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 969
    .local v2, "uid":Ljava/lang/String;
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_bag:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "\u914d\u9001\u8d39 :"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\u5143"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 970
    const v3, 0x7f0c006c

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_name:Landroid/widget/TextView;

    .line 971
    const v3, 0x7f0c006e

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_eva:Landroid/widget/TextView;

    .line 973
    const v3, 0x7f0c0073

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    .line 974
    const v3, 0x7f0c0071

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_price:Landroid/widget/TextView;

    .line 975
    const v3, 0x7f0c006d

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_sal:Landroid/widget/TextView;

    .line 976
    const v3, 0x7f0c0074

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_add:Landroid/widget/ImageView;

    .line 977
    const v3, 0x7f0c0072

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_del:Landroid/widget/ImageView;

    .line 979
    const v3, 0x7f0c0069

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/support/v4/view/ViewPager;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    .line 981
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v3, v7}, Landroid/support/v4/view/ViewPager;->setFocusable(Z)V

    .line 982
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v3, v7}, Landroid/support/v4/view/ViewPager;->setFocusableInTouchMode(Z)V

    .line 983
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v3}, Landroid/support/v4/view/ViewPager;->requestFocus()Z

    .line 984
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    new-instance v4, Lcom/example/m6wmr/DishesParticularActivity$MyPageChangeListener;

    invoke-direct {v4, p0, v6}, Lcom/example/m6wmr/DishesParticularActivity$MyPageChangeListener;-><init>(Lcom/example/m6wmr/DishesParticularActivity;Lcom/example/m6wmr/DishesParticularActivity$MyPageChangeListener;)V

    invoke-virtual {v3, v4}, Landroid/support/v4/view/ViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    .line 985
    const v3, 0x7f0c000a

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_car:Landroid/widget/ImageView;

    .line 986
    const v3, 0x7f0c006b

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->ll_guige:Landroid/widget/LinearLayout;

    .line 987
    const v3, 0x7f0c007a

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->llp:Landroid/widget/LinearLayout;

    .line 989
    const v3, 0x7f0c007f

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ListView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->list:Landroid/widget/ListView;

    .line 990
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    const v4, 0x7f0300ba

    invoke-static {v3, v4, v6}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 991
    .local v0, "dishes_particular_top":Landroid/view/View;
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->list:Landroid/widget/ListView;

    invoke-virtual {v3, v0}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 992
    const v3, 0x7f0c036d

    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->del:Landroid/widget/TextView;

    .line 993
    const v3, 0x7f0c00a8

    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->close:Landroid/widget/TextView;

    .line 994
    const v3, 0x7f0c007c

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/RelativeLayout;

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->search:Landroid/widget/RelativeLayout;

    .line 995
    return-void
.end method

.method private setAnim(Landroid/view/View;[I)V
    .locals 19
    .param p1, "v"    # Landroid/view/View;
    .param p2, "start_location"    # [I

    .prologue
    .line 727
    new-instance v3, Landroid/view/animation/ScaleAnimation;

    const/high16 v4, 0x3f000000    # 0.5f

    const/high16 v5, 0x3fc00000    # 1.5f

    const/high16 v6, 0x3f000000    # 0.5f

    const/high16 v7, 0x3fc00000    # 1.5f

    .line 728
    const/4 v8, 0x1

    const/high16 v9, 0x3f000000    # 0.5f

    const/4 v10, 0x1

    .line 729
    const/high16 v11, 0x3f000000    # 0.5f

    .line 727
    invoke-direct/range {v3 .. v11}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V

    .line 730
    .local v3, "mScaleAnimation":Landroid/view/animation/Animation;
    move-object/from16 v0, p0

    iget v4, v0, Lcom/example/m6wmr/DishesParticularActivity;->AnimationDuration:I

    int-to-long v4, v4

    invoke-virtual {v3, v4, v5}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 731
    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Landroid/view/animation/Animation;->setFillAfter(Z)V

    .line 733
    const/4 v4, 0x0

    move-object/from16 v0, p0

    iput-object v4, v0, Lcom/example/m6wmr/DishesParticularActivity;->anim_mask_layout:Landroid/view/ViewGroup;

    .line 734
    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesParticularActivity;->createAnimLayout()Landroid/view/ViewGroup;

    move-result-object v4

    move-object/from16 v0, p0

    iput-object v4, v0, Lcom/example/m6wmr/DishesParticularActivity;->anim_mask_layout:Landroid/view/ViewGroup;

    .line 735
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/example/m6wmr/DishesParticularActivity;->anim_mask_layout:Landroid/view/ViewGroup;

    move-object/from16 v0, p1

    invoke-virtual {v4, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 736
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/example/m6wmr/DishesParticularActivity;->anim_mask_layout:Landroid/view/ViewGroup;

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p2

    invoke-direct {v0, v4, v1, v2}, Lcom/example/m6wmr/DishesParticularActivity;->addViewToAnimLayout(Landroid/view/ViewGroup;Landroid/view/View;[I)Landroid/view/View;

    move-result-object v18

    .line 738
    .local v18, "view":Landroid/view/View;
    const/4 v4, 0x2

    new-array v14, v4, [I

    .line 739
    .local v14, "end_location":[I
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_num:Landroid/widget/TextView;

    invoke-virtual {v4, v14}, Landroid/widget/TextView;->getLocationInWindow([I)V

    .line 742
    const/4 v4, 0x0

    aget v4, p2, v4

    rsub-int/lit8 v4, v4, 0x0

    add-int/lit8 v12, v4, 0x50

    .line 743
    .local v12, "endX":I
    const/4 v4, 0x1

    aget v4, v14, v4

    const/4 v5, 0x1

    aget v5, p2, v5

    sub-int v13, v4, v5

    .line 744
    .local v13, "endY":I
    new-instance v16, Landroid/view/animation/TranslateAnimation;

    const/4 v4, 0x0

    .line 745
    int-to-float v5, v12

    const/4 v6, 0x0

    const/4 v7, 0x0

    .line 744
    move-object/from16 v0, v16

    invoke-direct {v0, v4, v5, v6, v7}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    .line 746
    .local v16, "translateAnimationX":Landroid/view/animation/TranslateAnimation;
    new-instance v4, Landroid/view/animation/LinearInterpolator;

    invoke-direct {v4}, Landroid/view/animation/LinearInterpolator;-><init>()V

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 747
    const/4 v4, 0x0

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setRepeatCount(I)V

    .line 748
    const/4 v4, 0x1

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setFillAfter(Z)V

    .line 750
    new-instance v17, Landroid/view/animation/TranslateAnimation;

    const/4 v4, 0x0

    const/4 v5, 0x0

    .line 751
    const/4 v6, 0x0

    int-to-float v7, v13

    .line 750
    move-object/from16 v0, v17

    invoke-direct {v0, v4, v5, v6, v7}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    .line 752
    .local v17, "translateAnimationY":Landroid/view/animation/TranslateAnimation;
    new-instance v4, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v4}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    move-object/from16 v0, v17

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 753
    const/4 v4, 0x0

    move-object/from16 v0, v17

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setRepeatCount(I)V

    .line 754
    const/4 v4, 0x1

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setFillAfter(Z)V

    .line 755
    new-instance v15, Landroid/view/animation/AnimationSet;

    const/4 v4, 0x0

    invoke-direct {v15, v4}, Landroid/view/animation/AnimationSet;-><init>(Z)V

    .line 756
    .local v15, "set":Landroid/view/animation/AnimationSet;
    const/4 v4, 0x0

    invoke-virtual {v15, v4}, Landroid/view/animation/AnimationSet;->setFillAfter(Z)V

    .line 757
    invoke-virtual {v15, v3}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 758
    move-object/from16 v0, v17

    invoke-virtual {v15, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 759
    invoke-virtual/range {v15 .. v16}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 760
    move-object/from16 v0, p0

    iget v4, v0, Lcom/example/m6wmr/DishesParticularActivity;->AnimationDuration:I

    int-to-long v4, v4

    invoke-virtual {v15, v4, v5}, Landroid/view/animation/AnimationSet;->setDuration(J)V

    .line 761
    move-object/from16 v0, v18

    invoke-virtual {v0, v15}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 763
    new-instance v4, Lcom/example/m6wmr/DishesParticularActivity$4;

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    invoke-direct {v4, v0, v1}, Lcom/example/m6wmr/DishesParticularActivity$4;-><init>(Lcom/example/m6wmr/DishesParticularActivity;Landroid/view/View;)V

    invoke-virtual {v15, v4}, Landroid/view/animation/AnimationSet;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 785
    return-void
.end method

.method private setData()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 904
    iget-object v2, p0, Lcom/example/m6wmr/DishesParticularActivity;->wb_foodsparticular:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    .line 906
    .local v1, "webSettings":Landroid/webkit/WebSettings;
    invoke-virtual {v1, v3}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 907
    invoke-virtual {v1, v3}, Landroid/webkit/WebSettings;->setAllowFileAccess(Z)V

    .line 908
    invoke-virtual {v1, v3}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V

    .line 911
    new-instance v2, Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 912
    const-string v3, "/index.php?ctrl=app&action=foodshow&id="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->goodsid:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    .line 911
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 914
    .local v0, "url":Ljava/lang/String;
    iget-object v2, p0, Lcom/example/m6wmr/DishesParticularActivity;->wb_foodsparticular:Landroid/webkit/WebView;

    invoke-virtual {v2, v0}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 916
    iget-object v2, p0, Lcom/example/m6wmr/DishesParticularActivity;->wb_foodsparticular:Landroid/webkit/WebView;

    new-instance v3, Landroid/webkit/WebViewClient;

    invoke-direct {v3}, Landroid/webkit/WebViewClient;-><init>()V

    invoke-virtual {v2, v3}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 919
    return-void
.end method

.method public static seth(Landroid/widget/ListView;)V
    .locals 7
    .param p0, "listView"    # Landroid/widget/ListView;

    .prologue
    const/4 v6, 0x0

    .line 1167
    sget-object v5, Lcom/example/m6wmr/DishesParticularActivity;->dishes_particular_top:Landroid/view/View;

    invoke-virtual {v5, v6, v6}, Landroid/view/View;->measure(II)V

    .line 1168
    sget-object v5, Lcom/example/m6wmr/DishesParticularActivity;->dishes_particular_top:Landroid/view/View;

    invoke-virtual {v5}, Landroid/view/View;->getMeasuredHeight()I

    move-result v5

    sput v5, Lcom/example/m6wmr/DishesParticularActivity;->headheight:I

    .line 1170
    if-nez p0, :cond_1

    .line 1191
    :cond_0
    :goto_0
    return-void

    .line 1172
    :cond_1
    invoke-virtual {p0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v1

    .line 1173
    .local v1, "listAdapter":Landroid/widget/ListAdapter;
    if-eqz v1, :cond_0

    .line 1177
    const/4 v4, 0x0

    .line 1178
    .local v4, "totalHeight":I
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_1
    invoke-interface {v1}, Landroid/widget/ListAdapter;->getCount()I

    move-result v5

    if-lt v0, v5, :cond_2

    .line 1184
    invoke-virtual {p0}, Landroid/widget/ListView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    .line 1186
    .local v3, "params":Landroid/view/ViewGroup$LayoutParams;
    invoke-virtual {p0}, Landroid/widget/ListView;->getDividerHeight()I

    move-result v5

    invoke-interface {v1}, Landroid/widget/ListAdapter;->getCount()I

    move-result v6

    add-int/lit8 v6, v6, -0x1

    mul-int/2addr v5, v6

    add-int/2addr v5, v4

    .line 1187
    sget v6, Lcom/example/m6wmr/DishesParticularActivity;->headheight:I

    add-int/2addr v5, v6

    .line 1185
    iput v5, v3, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 1189
    invoke-virtual {p0, v3}, Landroid/widget/ListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 1179
    .end local v3    # "params":Landroid/view/ViewGroup$LayoutParams;
    :cond_2
    const/4 v5, 0x0

    invoke-interface {v1, v0, v5, p0}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 1180
    .local v2, "listItem":Landroid/view/View;
    invoke-virtual {v2, v6, v6}, Landroid/view/View;->measure(II)V

    .line 1181
    invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I

    move-result v5

    add-int/2addr v4, v5

    .line 1178
    add-int/lit8 v0, v0, 0x1

    goto :goto_1
.end method

.method private setoncliclistner()V
    .locals 3

    .prologue
    .line 928
    iget-object v0, p0, Lcom/example/m6wmr/DishesParticularActivity;->closebtn:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6wmr/DishesParticularActivity$mOncliclistener;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/DishesParticularActivity$mOncliclistener;-><init>(Lcom/example/m6wmr/DishesParticularActivity;Lcom/example/m6wmr/DishesParticularActivity$mOncliclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 930
    return-void
.end method


# virtual methods
.method protected APPWidth()I
    .locals 3

    .prologue
    .line 948
    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    .line 949
    .local v0, "metric":Landroid/util/DisplayMetrics;
    invoke-virtual {p0}, Lcom/example/m6wmr/DishesParticularActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v2

    invoke-interface {v2}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 950
    iget v1, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    .line 951
    .local v1, "width":I
    return v1
.end method

.method public add(I)V
    .locals 24
    .param p1, "position"    # I

    .prologue
    .line 1695
    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesParticularActivity;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v19

    move-object/from16 v0, v19

    move/from16 v1, p1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Lbean/GoodsBean;

    .line 1697
    .local v14, "mygoods":Lbean/GoodsBean;
    invoke-virtual {v14}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v8

    .line 1698
    .local v8, "gid":Ljava/lang/String;
    invoke-virtual {v14}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v15

    .line 1699
    .local v15, "name":Ljava/lang/String;
    invoke-virtual {v14}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v19

    if-nez v19, :cond_3

    .line 1701
    new-instance v13, Landroid/os/Message;

    invoke-direct {v13}, Landroid/os/Message;-><init>()V

    .line 1702
    .local v13, "msg":Landroid/os/Message;
    iput-object v8, v13, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1703
    const/16 v19, 0x23

    move/from16 v0, v19

    iput v0, v13, Landroid/os/Message;->arg1:I

    .line 1704
    sget-object v19, Lframent/FramentOrder;->h:Landroid/os/Handler;

    move-object/from16 v0, v19

    invoke-virtual {v0, v13}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1706
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->helper:Ldbclass/DBOpenHelper;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v19

    .line 1707
    new-instance v20, Ljava/lang/StringBuilder;

    const-string v21, "select * from cart where goodsid="

    invoke-direct/range {v20 .. v21}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v20

    invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    const/16 v21, 0x0

    .line 1706
    invoke-virtual/range {v19 .. v21}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    .line 1708
    const/4 v11, 0x0

    .line 1709
    .local v11, "goodscount":I
    const/4 v10, 0x0

    .line 1710
    .local v10, "goodscostone":F
    const/4 v4, 0x1

    .line 1711
    .local v4, "checkgd":Z
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    if-eqz v19, :cond_2

    .line 1712
    :goto_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    invoke-interface/range {v19 .. v19}, Landroid/database/Cursor;->moveToNext()Z

    move-result v19

    if-nez v19, :cond_1

    .line 1724
    :goto_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    invoke-interface/range {v19 .. v19}, Landroid/database/Cursor;->close()V

    .line 1725
    add-int/lit8 v16, v11, 0x1

    .line 1727
    .local v16, "newgoodcount":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    move-object/from16 v19, v0

    const-string v20, "goodscount"

    invoke-static/range {v16 .. v16}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v21

    invoke-virtual/range {v19 .. v21}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1728
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    move-object/from16 v19, v0

    const-string v20, "cart"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    move-object/from16 v21, v0

    new-instance v22, Ljava/lang/StringBuilder;

    const-string v23, "goodsid = \'"

    invoke-direct/range {v22 .. v23}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v22

    invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    const-string v23, "\'"

    invoke-virtual/range {v22 .. v23}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    invoke-virtual/range {v22 .. v22}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v22

    const/16 v23, 0x0

    invoke-virtual/range {v19 .. v23}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1730
    add-int/lit8 v19, p1, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->list:Landroid/widget/ListView;

    move-object/from16 v20, v0

    move-object/from16 v0, p0

    move/from16 v1, v19

    move-object/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Lcom/example/m6wmr/DishesParticularActivity;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v18

    .line 1731
    .local v18, "tempview":Landroid/view/View;
    const v19, 0x7f0c0081

    invoke-virtual/range {v18 .. v19}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v12

    check-cast v12, Landroid/widget/TextView;

    .line 1732
    .local v12, "goodscoust":Landroid/widget/TextView;
    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, v19

    invoke-virtual {v12, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1734
    const v19, 0x7f0c0080

    invoke-virtual/range {v18 .. v19}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    .line 1735
    .local v6, "delbtn":Landroid/widget/ImageView;
    const/16 v19, 0x0

    move/from16 v0, v19

    invoke-virtual {v6, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1736
    const/16 v19, 0x0

    move/from16 v0, v19

    invoke-virtual {v12, v0}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1739
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    move/from16 v19, v0

    add-int/lit8 v19, v19, 0x1

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    .line 1740
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_num:Landroid/widget/TextView;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    move/from16 v20, v0

    invoke-static/range {v20 .. v20}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1741
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->search:Landroid/widget/RelativeLayout;

    move-object/from16 v19, v0

    const v20, 0x7f02009e

    invoke-virtual/range {v19 .. v20}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 1742
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v19, v0

    add-float v19, v19, v10

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1743
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v19, v0

    const/high16 v20, 0x42c80000    # 100.0f

    mul-float v19, v19, v20

    invoke-static/range {v19 .. v19}, Ljava/lang/Math;->round(F)I

    move-result v19

    move/from16 v0, v19

    int-to-float v0, v0

    move/from16 v19, v0

    const/high16 v20, 0x42c80000    # 100.0f

    div-float v19, v19, v20

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1744
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total:Landroid/widget/TextView;

    move-object/from16 v19, v0

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v21, v0

    invoke-static/range {v21 .. v21}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1785
    .end local v6    # "delbtn":Landroid/widget/ImageView;
    .end local v11    # "goodscount":I
    .end local v13    # "msg":Landroid/os/Message;
    :cond_0
    :goto_2
    return-void

    .line 1713
    .end local v12    # "goodscoust":Landroid/widget/TextView;
    .end local v16    # "newgoodcount":I
    .end local v18    # "tempview":Landroid/view/View;
    .restart local v11    # "goodscount":I
    .restart local v13    # "msg":Landroid/os/Message;
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v20, v0

    .line 1714
    const-string v21, "goodscount"

    invoke-interface/range {v20 .. v21}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v20

    .line 1713
    invoke-interface/range {v19 .. v20}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v19 .. v19}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/Integer;->intValue()I

    move-result v11

    .line 1715
    const/4 v4, 0x0

    .line 1716
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v20, v0

    .line 1717
    const-string v21, "goodscost"

    invoke-interface/range {v20 .. v21}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v20

    .line 1716
    invoke-interface/range {v19 .. v20}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v19 .. v19}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/Float;->floatValue()F

    move-result v5

    .line 1718
    .local v5, "dajia":F
    const/high16 v19, 0x42c80000    # 100.0f

    mul-float v19, v19, v5

    invoke-static/range {v19 .. v19}, Ljava/lang/Math;->round(F)I

    move-result v19

    move/from16 v0, v19

    int-to-float v0, v0

    move/from16 v19, v0

    const/high16 v20, 0x42c80000    # 100.0f

    div-float v10, v19, v20

    goto/16 :goto_0

    .line 1722
    .end local v5    # "dajia":F
    :cond_2
    const/4 v4, 0x1

    goto/16 :goto_1

    .line 1747
    .end local v4    # "checkgd":Z
    .end local v10    # "goodscostone":F
    .end local v11    # "goodscount":I
    .end local v13    # "msg":Landroid/os/Message;
    :cond_3
    invoke-virtual {v14}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v7

    .line 1748
    .local v7, "ggid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->helper:Ldbclass/DBOpenHelper;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v19

    new-instance v20, Ljava/lang/StringBuilder;

    const-string v21, "select * from cart where pid="

    invoke-direct/range {v20 .. v21}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v20

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    const/16 v21, 0x0

    invoke-virtual/range {v19 .. v21}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    .line 1749
    const/16 v17, 0x0

    .line 1750
    .local v17, "pnum":I
    const/4 v10, 0x0

    .line 1751
    .restart local v10    # "goodscostone":F
    const/4 v4, 0x1

    .line 1752
    .restart local v4    # "checkgd":Z
    const/4 v9, 0x0

    .line 1753
    .local v9, "goodname":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    if-eqz v19, :cond_6

    .line 1754
    :goto_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    invoke-interface/range {v19 .. v19}, Landroid/database/Cursor;->moveToNext()Z

    move-result v19

    if-nez v19, :cond_5

    .line 1764
    :goto_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    invoke-interface/range {v19 .. v19}, Landroid/database/Cursor;->close()V

    .line 1766
    const/4 v3, 0x1

    .line 1767
    .local v3, "checkcart":Z
    add-int/lit8 v16, v17, 0x1

    .line 1768
    .restart local v16    # "newgoodcount":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    move-object/from16 v19, v0

    const-string v20, "pnum"

    invoke-static/range {v16 .. v16}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v21

    invoke-virtual/range {v19 .. v21}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1769
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    move-object/from16 v19, v0

    const-string v20, "cart"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    move-object/from16 v21, v0

    new-instance v22, Ljava/lang/StringBuilder;

    const-string v23, "pid = \'"

    invoke-direct/range {v22 .. v23}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v22

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    const-string v23, "\'"

    invoke-virtual/range {v22 .. v23}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    invoke-virtual/range {v22 .. v22}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v22

    const/16 v23, 0x0

    invoke-virtual/range {v19 .. v23}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1770
    add-int/lit8 v19, p1, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->list:Landroid/widget/ListView;

    move-object/from16 v20, v0

    move-object/from16 v0, p0

    move/from16 v1, v19

    move-object/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Lcom/example/m6wmr/DishesParticularActivity;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v18

    .line 1771
    .restart local v18    # "tempview":Landroid/view/View;
    const v19, 0x7f0c0081

    invoke-virtual/range {v18 .. v19}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v12

    check-cast v12, Landroid/widget/TextView;

    .line 1772
    .restart local v12    # "goodscoust":Landroid/widget/TextView;
    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, v19

    invoke-virtual {v12, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1774
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    move/from16 v19, v0

    add-int/lit8 v19, v19, 0x1

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    .line 1775
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_num:Landroid/widget/TextView;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    move/from16 v20, v0

    invoke-static/range {v20 .. v20}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1777
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v19, v0

    add-float v19, v19, v10

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1778
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v19, v0

    const/high16 v20, 0x42c80000    # 100.0f

    mul-float v19, v19, v20

    invoke-static/range {v19 .. v19}, Ljava/lang/Math;->round(F)I

    move-result v19

    move/from16 v0, v19

    int-to-float v0, v0

    move/from16 v19, v0

    const/high16 v20, 0x42c80000    # 100.0f

    div-float v19, v19, v20

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1779
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total:Landroid/widget/TextView;

    move-object/from16 v19, v0

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v21, v0

    invoke-static/range {v21 .. v21}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1780
    new-instance v19, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    invoke-virtual/range {v20 .. v20}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v20 .. v20}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v20

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->attr1:Ljava/lang/String;

    move-object/from16 v20, v0

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, v19

    invoke-virtual {v9, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-nez v19, :cond_4

    new-instance v19, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    invoke-virtual/range {v20 .. v20}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v20 .. v20}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v20

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->attr1:Ljava/lang/String;

    move-object/from16 v20, v0

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->attr2:Ljava/lang/String;

    move-object/from16 v20, v0

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, v19

    invoke-virtual {v9, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-eqz v19, :cond_0

    .line 1781
    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    move-object/from16 v19, v0

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1755
    .end local v3    # "checkcart":Z
    .end local v12    # "goodscoust":Landroid/widget/TextView;
    .end local v16    # "newgoodcount":I
    .end local v18    # "tempview":Landroid/view/View;
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v20, v0

    const-string v21, "pnum"

    invoke-interface/range {v20 .. v21}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v20

    invoke-interface/range {v19 .. v20}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v19 .. v19}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/Integer;->intValue()I

    move-result v17

    .line 1756
    const/4 v4, 0x0

    .line 1757
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v20, v0

    const-string v21, "goodscost"

    invoke-interface/range {v20 .. v21}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v20

    invoke-interface/range {v19 .. v20}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v19 .. v19}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/Float;->floatValue()F

    move-result v5

    .line 1758
    .restart local v5    # "dajia":F
    const/high16 v19, 0x42c80000    # 100.0f

    mul-float v19, v19, v5

    invoke-static/range {v19 .. v19}, Ljava/lang/Math;->round(F)I

    move-result v19

    move/from16 v0, v19

    int-to-float v0, v0

    move/from16 v19, v0

    const/high16 v20, 0x42c80000    # 100.0f

    div-float v10, v19, v20

    .line 1759
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v20, v0

    const-string v21, "goodsname"

    invoke-interface/range {v20 .. v21}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v20

    invoke-interface/range {v19 .. v20}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    goto/16 :goto_3

    .line 1762
    .end local v5    # "dajia":F
    :cond_6
    const/4 v4, 0x1

    goto/16 :goto_4
.end method

.method public addcart(I)V
    .locals 17
    .param p1, "position"    # I

    .prologue
    .line 1039
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->listpro:Ljava/util/List;

    invoke-interface {v11}, Ljava/util/List;->size()I

    move-result v11

    move/from16 v0, p1

    if-ge v11, v0, :cond_0

    .line 1040
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->iv_del:Landroid/widget/ImageView;

    const/16 v12, 0x8

    invoke-virtual {v11, v12}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1041
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    const/16 v12, 0x8

    invoke-virtual {v11, v12}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1042
    const-string v11, "\u63d0\u793a\u4fe1\u606f"

    const-string v12, "\u5e93\u5b58\u4e0d\u8db3"

    move-object/from16 v0, p0

    invoke-static {v0, v11, v12}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 1112
    :goto_0
    return-void

    .line 1046
    :cond_0
    new-instance v11, Landroid/widget/ImageView;

    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    invoke-direct {v11, v12}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    move-object/from16 v0, p0

    iput-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->buyImg:Landroid/widget/ImageView;

    .line 1047
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->buyImg:Landroid/widget/ImageView;

    const v12, 0x7f02004f

    invoke-virtual {v11, v12}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 1048
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v11}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v11

    const-string v12, "1"

    invoke-virtual {v11, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_1

    .line 1049
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->buyImg:Landroid/widget/ImageView;

    const v12, 0x7f02004e

    invoke-virtual {v11, v12}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 1051
    :cond_1
    const/4 v11, 0x2

    new-array v10, v11, [I

    .line 1053
    .local v10, "startpos":[I
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->iv_add:Landroid/widget/ImageView;

    invoke-virtual {v11, v10}, Landroid/widget/ImageView;->getLocationInWindow([I)V

    .line 1054
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->buyImg:Landroid/widget/ImageView;

    move-object/from16 v0, p0

    invoke-direct {v0, v11, v10}, Lcom/example/m6wmr/DishesParticularActivity;->setAnim(Landroid/view/View;[I)V

    .line 1056
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->listpro:Ljava/util/List;

    move/from16 v0, p1

    invoke-interface {v11, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lbean/ProductBean;

    .line 1058
    .local v6, "mygoods":Lbean/ProductBean;
    invoke-virtual {v6}, Lbean/ProductBean;->getId()Ljava/lang/String;

    move-result-object v8

    .line 1060
    .local v8, "pid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v11}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v11

    .line 1061
    new-instance v12, Ljava/lang/StringBuilder;

    const-string v13, "select * from cart where pid="

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v12, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    const/4 v13, 0x0

    .line 1060
    invoke-virtual {v11, v12, v13}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v11

    move-object/from16 v0, p0

    iput-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    .line 1062
    const/4 v9, 0x0

    .line 1063
    .local v9, "pnum":I
    const/4 v5, 0x0

    .line 1064
    .local v5, "goodscostone":F
    const/4 v3, 0x1

    .line 1065
    .local v3, "checkgd":Z
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    if-eqz v11, :cond_3

    .line 1066
    :goto_1
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v11}, Landroid/database/Cursor;->moveToNext()Z

    move-result v11

    if-nez v11, :cond_2

    .line 1078
    :goto_2
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v11}, Landroid/database/Cursor;->close()V

    .line 1080
    const/4 v2, 0x1

    .line 1081
    .local v2, "checkcart":Z
    add-int/lit8 v7, v9, 0x1

    .line 1083
    .local v7, "newgoodcount":I
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    invoke-static {v7}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1084
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->attr2:Ljava/lang/String;

    if-eqz v11, :cond_4

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/example/m6wmr/DishesParticularActivity;->attr2:Ljava/lang/String;

    .line 1085
    .local v1, "attr":Ljava/lang/String;
    :goto_3
    if-eqz v3, :cond_5

    .line 1086
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 1087
    const-string v12, "insert into cart (shopid,goodsname,goodscost,pid,pnum,goodscount,type) values(?,?,?,?,?,?,?)"

    .line 1088
    const/4 v13, 0x7

    new-array v13, v13, [Ljava/lang/Object;

    const/4 v14, 0x0

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/DishesParticularActivity;->shopid:Ljava/lang/String;

    aput-object v15, v13, v14

    const/4 v14, 0x1

    new-instance v15, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->bb:Lbean/GoodsBean;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v16

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v16

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->attr1:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    aput-object v15, v13, v14

    const/4 v14, 0x2

    .line 1089
    invoke-virtual {v6}, Lbean/ProductBean;->getCost()Ljava/lang/String;

    move-result-object v15

    aput-object v15, v13, v14

    const/4 v14, 0x3

    aput-object v8, v13, v14

    const/4 v14, 0x4

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v15

    aput-object v15, v13, v14

    const/4 v14, 0x5

    const-string v15, "0"

    aput-object v15, v13, v14

    const/4 v14, 0x6

    const-string v15, "1"

    aput-object v15, v13, v14

    .line 1086
    invoke-virtual {v11, v12, v13}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1091
    invoke-virtual {v6}, Lbean/ProductBean;->getCost()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/Float;->floatValue()F

    move-result v4

    .line 1092
    .local v4, "dajia":F
    const/high16 v11, 0x42c80000    # 100.0f

    mul-float/2addr v11, v4

    invoke-static {v11}, Ljava/lang/Math;->round(F)I

    move-result v11

    int-to-float v11, v11

    const/high16 v12, 0x42c80000    # 100.0f

    div-float v5, v11, v12

    .line 1100
    .end local v4    # "dajia":F
    :goto_4
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->iv_del:Landroid/widget/ImageView;

    const/4 v12, 0x0

    invoke-virtual {v11, v12}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1101
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    const/4 v12, 0x0

    invoke-virtual {v11, v12}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1103
    move-object/from16 v0, p0

    iget v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    add-int/lit8 v11, v11, 0x1

    move-object/from16 v0, p0

    iput v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    .line 1104
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_num:Landroid/widget/TextView;

    move-object/from16 v0, p0

    iget v12, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    invoke-static {v12}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1105
    move-object/from16 v0, p0

    iget v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    add-float/2addr v11, v5

    move-object/from16 v0, p0

    iput v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1106
    move-object/from16 v0, p0

    iget v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    const/high16 v12, 0x42c80000    # 100.0f

    mul-float/2addr v11, v12

    invoke-static {v11}, Ljava/lang/Math;->round(F)I

    move-result v11

    int-to-float v11, v11

    const/high16 v12, 0x42c80000    # 100.0f

    div-float/2addr v11, v12

    move-object/from16 v0, p0

    iput v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1107
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total:Landroid/widget/TextView;

    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v13, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    invoke-static {v13}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    .line 1067
    .end local v1    # "attr":Ljava/lang/String;
    .end local v2    # "checkcart":Z
    .end local v7    # "newgoodcount":I
    :cond_2
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    .line 1068
    const-string v13, "pnum"

    invoke-interface {v12, v13}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v12

    .line 1067
    invoke-interface {v11, v12}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/Integer;->intValue()I

    move-result v9

    .line 1069
    const/4 v3, 0x0

    .line 1070
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    .line 1071
    const-string v13, "goodscost"

    invoke-interface {v12, v13}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v12

    .line 1070
    invoke-interface {v11, v12}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/Float;->floatValue()F

    move-result v4

    .line 1072
    .restart local v4    # "dajia":F
    const/high16 v11, 0x42c80000    # 100.0f

    mul-float/2addr v11, v4

    invoke-static {v11}, Ljava/lang/Math;->round(F)I

    move-result v11

    int-to-float v11, v11

    const/high16 v12, 0x42c80000    # 100.0f

    div-float v5, v11, v12

    goto/16 :goto_1

    .line 1076
    .end local v4    # "dajia":F
    :cond_3
    const/4 v3, 0x1

    goto/16 :goto_2

    .line 1084
    .restart local v2    # "checkcart":Z
    .restart local v7    # "newgoodcount":I
    :cond_4
    const-string v1, ""

    goto/16 :goto_3

    .line 1095
    .restart local v1    # "attr":Ljava/lang/String;
    :cond_5
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    const-string v12, "pnum"

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v13

    invoke-virtual {v11, v12, v13}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1096
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v12, "cart"

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    new-instance v14, Ljava/lang/StringBuilder;

    const-string v15, "pid = \'"

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    const-string v15, "\'"

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    const/4 v15, 0x0

    invoke-virtual {v11, v12, v13, v14, v15}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto/16 :goto_4
.end method

.method public del(I)V
    .locals 22
    .param p1, "position"    # I

    .prologue
    .line 1788
    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesParticularActivity;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v17

    move-object/from16 v0, v17

    move/from16 v1, p1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lbean/GoodsBean;

    .line 1789
    .local v13, "mygoods":Lbean/GoodsBean;
    invoke-virtual {v13}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v7

    .line 1790
    .local v7, "gid":Ljava/lang/String;
    invoke-virtual {v13}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v17

    if-nez v17, :cond_8

    .line 1791
    new-instance v12, Landroid/os/Message;

    invoke-direct {v12}, Landroid/os/Message;-><init>()V

    .line 1792
    .local v12, "msg":Landroid/os/Message;
    iput-object v7, v12, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1793
    const/16 v17, 0x24

    move/from16 v0, v17

    iput v0, v12, Landroid/os/Message;->arg1:I

    .line 1794
    sget-object v17, Lframent/FramentOrder;->h:Landroid/os/Handler;

    move-object/from16 v0, v17

    invoke-virtual {v0, v12}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1796
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->helper:Ldbclass/DBOpenHelper;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v17

    .line 1797
    new-instance v18, Ljava/lang/StringBuilder;

    const-string v19, "select * from cart where goodsid="

    invoke-direct/range {v18 .. v19}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v18

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    const/16 v19, 0x0

    .line 1796
    invoke-virtual/range {v17 .. v19}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v17

    move-object/from16 v0, v17

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    .line 1798
    const/4 v10, 0x0

    .line 1799
    .local v10, "goodscount":I
    const/4 v3, 0x1

    .line 1800
    .local v3, "checkgd":Z
    const/4 v9, 0x0

    .line 1801
    .local v9, "goodscostone":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v17, v0

    if-eqz v17, :cond_2

    .line 1802
    :goto_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v17, v0

    invoke-interface/range {v17 .. v17}, Landroid/database/Cursor;->moveToNext()Z

    move-result v17

    if-nez v17, :cond_1

    .line 1813
    :goto_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v17, v0

    invoke-interface/range {v17 .. v17}, Landroid/database/Cursor;->close()V

    .line 1814
    if-eqz v3, :cond_3

    .line 1815
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    move-object/from16 v17, v0

    const-string v18, "\u63d0\u793a\u4fe1\u606f"

    const-string v19, ""

    invoke-static/range {v17 .. v19}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 1914
    .end local v10    # "goodscount":I
    .end local v12    # "msg":Landroid/os/Message;
    :cond_0
    :goto_2
    return-void

    .line 1803
    .restart local v10    # "goodscount":I
    .restart local v12    # "msg":Landroid/os/Message;
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    .line 1804
    const-string v19, "goodscount"

    invoke-interface/range {v18 .. v19}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    .line 1803
    invoke-interface/range {v17 .. v18}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v17

    invoke-static/range {v17 .. v17}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/Integer;->intValue()I

    move-result v10

    .line 1805
    const/4 v3, 0x0

    .line 1806
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    .line 1807
    const-string v19, "goodscost"

    invoke-interface/range {v18 .. v19}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    .line 1806
    invoke-interface/range {v17 .. v18}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v17

    invoke-static/range {v17 .. v17}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/Float;->floatValue()F

    move-result v4

    .line 1808
    .local v4, "dajia":F
    const/high16 v17, 0x42c80000    # 100.0f

    mul-float v17, v17, v4

    invoke-static/range {v17 .. v17}, Ljava/lang/Math;->round(F)I

    move-result v17

    move/from16 v0, v17

    int-to-float v0, v0

    move/from16 v17, v0

    const/high16 v18, 0x42c80000    # 100.0f

    div-float v9, v17, v18

    goto :goto_0

    .line 1811
    .end local v4    # "dajia":F
    :cond_2
    const/4 v3, 0x1

    goto :goto_1

    .line 1818
    :cond_3
    add-int/lit8 v14, v10, -0x1

    .line 1819
    .local v14, "newgoodcount":I
    const/16 v17, 0x1

    move/from16 v0, v17

    if-ge v14, v0, :cond_7

    .line 1821
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    move-object/from16 v17, v0

    const-string v18, "cart"

    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "goodsid = \'"

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v19

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    const-string v20, "\'"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    const/16 v20, 0x0

    invoke-virtual/range {v17 .. v20}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1823
    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesParticularActivity;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v17

    invoke-interface/range {v17 .. v17}, Ljava/util/List;->size()I

    move-result v17

    if-lez v17, :cond_6

    .line 1824
    new-instance v17, Ldata/PupCarAdapter2;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    move-object/from16 v18, v0

    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesParticularActivity;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v19

    invoke-direct/range {v17 .. v19}, Ldata/PupCarAdapter2;-><init>(Landroid/content/Context;Ljava/util/List;)V

    move-object/from16 v0, v17

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->ca:Ldata/PupCarAdapter2;

    .line 1825
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->list:Landroid/widget/ListView;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->ca:Ldata/PupCarAdapter2;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 1826
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->ca:Ldata/PupCarAdapter2;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Ldata/PupCarAdapter2;->notifyDataSetChanged()V

    .line 1837
    :goto_3
    if-lez v14, :cond_4

    .line 1838
    add-int/lit8 v17, p1, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->list:Landroid/widget/ListView;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    move/from16 v1, v17

    move-object/from16 v2, v18

    invoke-virtual {v0, v1, v2}, Lcom/example/m6wmr/DishesParticularActivity;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v16

    .line 1839
    .local v16, "tempview":Landroid/view/View;
    const v17, 0x7f0c0081

    invoke-virtual/range {v16 .. v17}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v11

    check-cast v11, Landroid/widget/TextView;

    .line 1840
    .local v11, "goodscoust":Landroid/widget/TextView;
    invoke-static {v14}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v11, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1843
    .end local v11    # "goodscoust":Landroid/widget/TextView;
    .end local v16    # "tempview":Landroid/view/View;
    :cond_4
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v17, v0

    sub-float v17, v17, v9

    move/from16 v0, v17

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1845
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    move/from16 v17, v0

    add-int/lit8 v17, v17, -0x1

    move/from16 v0, v17

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    .line 1846
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_num:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    move/from16 v18, v0

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1847
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    move/from16 v17, v0

    if-nez v17, :cond_5

    .line 1848
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->search:Landroid/widget/RelativeLayout;

    move-object/from16 v17, v0

    const v18, 0x7f02008c

    invoke-virtual/range {v17 .. v18}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 1850
    :cond_5
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v17, v0

    const/high16 v18, 0x42c80000    # 100.0f

    mul-float v17, v17, v18

    invoke-static/range {v17 .. v17}, Ljava/lang/Math;->round(F)I

    move-result v17

    move/from16 v0, v17

    int-to-float v0, v0

    move/from16 v17, v0

    const/high16 v18, 0x42c80000    # 100.0f

    div-float v17, v17, v18

    move/from16 v0, v17

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1851
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total:Landroid/widget/TextView;

    move-object/from16 v17, v0

    new-instance v18, Ljava/lang/StringBuilder;

    invoke-direct/range {v18 .. v18}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v19, v0

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1828
    :cond_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->list:Landroid/widget/ListView;

    move-object/from16 v17, v0

    const/16 v18, 0x8

    invoke-virtual/range {v17 .. v18}, Landroid/widget/ListView;->setVisibility(I)V

    goto/16 :goto_3

    .line 1833
    :cond_7
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    move-object/from16 v17, v0

    const-string v18, "goodscount"

    invoke-static {v14}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v19

    invoke-virtual/range {v17 .. v19}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1834
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    move-object/from16 v17, v0

    const-string v18, "cart"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    move-object/from16 v19, v0

    new-instance v20, Ljava/lang/StringBuilder;

    const-string v21, "goodsid = \'"

    invoke-direct/range {v20 .. v21}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v20

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, "\'"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    const/16 v21, 0x0

    invoke-virtual/range {v17 .. v21}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto/16 :goto_3

    .line 1854
    .end local v3    # "checkgd":Z
    .end local v9    # "goodscostone":F
    .end local v10    # "goodscount":I
    .end local v12    # "msg":Landroid/os/Message;
    .end local v14    # "newgoodcount":I
    :cond_8
    invoke-virtual {v13}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v6

    .line 1855
    .local v6, "ggid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->helper:Ldbclass/DBOpenHelper;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v17

    new-instance v18, Ljava/lang/StringBuilder;

    const-string v19, "select * from cart where pid="

    invoke-direct/range {v18 .. v19}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v18

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    const/16 v19, 0x0

    invoke-virtual/range {v17 .. v19}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v17

    move-object/from16 v0, v17

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    .line 1856
    const/4 v15, 0x0

    .line 1857
    .local v15, "pnum":I
    const/4 v3, 0x1

    .line 1858
    .restart local v3    # "checkgd":Z
    const/4 v9, 0x0

    .line 1859
    .restart local v9    # "goodscostone":F
    const/4 v8, 0x0

    .line 1860
    .local v8, "goodname":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v17, v0

    if-eqz v17, :cond_c

    .line 1861
    :goto_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v17, v0

    invoke-interface/range {v17 .. v17}, Landroid/database/Cursor;->moveToNext()Z

    move-result v17

    if-nez v17, :cond_b

    .line 1873
    :goto_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v17, v0

    invoke-interface/range {v17 .. v17}, Landroid/database/Cursor;->close()V

    .line 1875
    add-int/lit8 v14, v15, -0x1

    .line 1876
    .restart local v14    # "newgoodcount":I
    add-int/lit8 v17, p1, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->list:Landroid/widget/ListView;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    move/from16 v1, v17

    move-object/from16 v2, v18

    invoke-virtual {v0, v1, v2}, Lcom/example/m6wmr/DishesParticularActivity;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v16

    .line 1877
    .restart local v16    # "tempview":Landroid/view/View;
    const v17, 0x7f0c0081

    invoke-virtual/range {v16 .. v17}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v11

    check-cast v11, Landroid/widget/TextView;

    .line 1878
    .restart local v11    # "goodscoust":Landroid/widget/TextView;
    invoke-static {v14}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v11, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1879
    const/16 v17, 0x1

    move/from16 v0, v17

    if-ge v14, v0, :cond_9

    .line 1880
    const v17, 0x7f0c0080

    invoke-virtual/range {v16 .. v17}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    .line 1882
    .local v5, "delbtn":Landroid/widget/ImageView;
    const/16 v17, 0x8

    move/from16 v0, v17

    invoke-virtual {v5, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1883
    const/16 v17, 0x8

    move/from16 v0, v17

    invoke-virtual {v11, v0}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1886
    .end local v5    # "delbtn":Landroid/widget/ImageView;
    :cond_9
    const/16 v17, 0x1

    move/from16 v0, v17

    if-ge v14, v0, :cond_e

    .line 1888
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    move-object/from16 v17, v0

    const-string v18, "cart"

    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "pid = \'"

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v19

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    const-string v20, "\'"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    const/16 v20, 0x0

    invoke-virtual/range {v17 .. v20}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1889
    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesParticularActivity;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v17

    invoke-interface/range {v17 .. v17}, Ljava/util/List;->size()I

    move-result v17

    if-lez v17, :cond_d

    .line 1890
    new-instance v17, Ldata/PupCarAdapter2;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    move-object/from16 v18, v0

    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesParticularActivity;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v19

    invoke-direct/range {v17 .. v19}, Ldata/PupCarAdapter2;-><init>(Landroid/content/Context;Ljava/util/List;)V

    move-object/from16 v0, v17

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->ca:Ldata/PupCarAdapter2;

    .line 1891
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->list:Landroid/widget/ListView;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->ca:Ldata/PupCarAdapter2;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 1892
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->ca:Ldata/PupCarAdapter2;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Ldata/PupCarAdapter2;->notifyDataSetChanged()V

    .line 1902
    :goto_6
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v17, v0

    sub-float v17, v17, v9

    move/from16 v0, v17

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1903
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    move/from16 v17, v0

    add-int/lit8 v17, v17, -0x1

    move/from16 v0, v17

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    .line 1904
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_num:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    move/from16 v18, v0

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1906
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v17, v0

    const/high16 v18, 0x42c80000    # 100.0f

    mul-float v17, v17, v18

    invoke-static/range {v17 .. v17}, Ljava/lang/Math;->round(F)I

    move-result v17

    move/from16 v0, v17

    int-to-float v0, v0

    move/from16 v17, v0

    const/high16 v18, 0x42c80000    # 100.0f

    div-float v17, v17, v18

    move/from16 v0, v17

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1907
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total:Landroid/widget/TextView;

    move-object/from16 v17, v0

    new-instance v18, Ljava/lang/StringBuilder;

    invoke-direct/range {v18 .. v18}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v19, v0

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1909
    new-instance v17, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->bb:Lbean/GoodsBean;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    invoke-direct/range {v17 .. v18}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->attr1:Ljava/lang/String;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v8, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v17

    if-nez v17, :cond_a

    new-instance v17, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->bb:Lbean/GoodsBean;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    invoke-direct/range {v17 .. v18}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->attr1:Ljava/lang/String;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->attr2:Ljava/lang/String;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v8, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v17

    if-eqz v17, :cond_0

    .line 1910
    :cond_a
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    move-object/from16 v17, v0

    invoke-static {v14}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1862
    .end local v11    # "goodscoust":Landroid/widget/TextView;
    .end local v14    # "newgoodcount":I
    .end local v16    # "tempview":Landroid/view/View;
    :cond_b
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    .line 1863
    const-string v19, "pnum"

    invoke-interface/range {v18 .. v19}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    .line 1862
    invoke-interface/range {v17 .. v18}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v17

    invoke-static/range {v17 .. v17}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/Integer;->intValue()I

    move-result v15

    .line 1864
    const/4 v3, 0x0

    .line 1865
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    .line 1866
    const-string v19, "goodscost"

    invoke-interface/range {v18 .. v19}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    .line 1865
    invoke-interface/range {v17 .. v18}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v17

    invoke-static/range {v17 .. v17}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/Float;->floatValue()F

    move-result v4

    .line 1867
    .restart local v4    # "dajia":F
    const/high16 v17, 0x42c80000    # 100.0f

    mul-float v17, v17, v4

    invoke-static/range {v17 .. v17}, Ljava/lang/Math;->round(F)I

    move-result v17

    move/from16 v0, v17

    int-to-float v0, v0

    move/from16 v17, v0

    const/high16 v18, 0x42c80000    # 100.0f

    div-float v9, v17, v18

    .line 1868
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    const-string v19, "goodsname"

    invoke-interface/range {v18 .. v19}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    invoke-interface/range {v17 .. v18}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    goto/16 :goto_4

    .line 1871
    .end local v4    # "dajia":F
    :cond_c
    const/4 v3, 0x1

    goto/16 :goto_5

    .line 1894
    .restart local v11    # "goodscoust":Landroid/widget/TextView;
    .restart local v14    # "newgoodcount":I
    .restart local v16    # "tempview":Landroid/view/View;
    :cond_d
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->list:Landroid/widget/ListView;

    move-object/from16 v17, v0

    const/16 v18, 0x8

    invoke-virtual/range {v17 .. v18}, Landroid/widget/ListView;->setVisibility(I)V

    goto/16 :goto_6

    .line 1898
    :cond_e
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    move-object/from16 v17, v0

    const-string v18, "pnum"

    invoke-static {v14}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v19

    invoke-virtual/range {v17 .. v19}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1899
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    move-object/from16 v17, v0

    const-string v18, "cart"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    move-object/from16 v19, v0

    new-instance v20, Ljava/lang/StringBuilder;

    const-string v21, "pid = \'"

    invoke-direct/range {v20 .. v21}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v20

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, "\'"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    const/16 v21, 0x0

    invoke-virtual/range {v17 .. v21}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto/16 :goto_6
.end method

.method public delcart(I)V
    .locals 12
    .param p1, "position"    # I

    .prologue
    .line 1116
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->listpro:Ljava/util/List;

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    if-ge v7, p1, :cond_0

    .line 1163
    :goto_0
    return-void

    .line 1119
    :cond_0
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->listpro:Ljava/util/List;

    invoke-interface {v7, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/ProductBean;

    .line 1121
    .local v3, "mygoods":Lbean/ProductBean;
    invoke-virtual {v3}, Lbean/ProductBean;->getId()Ljava/lang/String;

    move-result-object v5

    .line 1122
    .local v5, "pid":Ljava/lang/String;
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v7}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v7

    .line 1123
    new-instance v8, Ljava/lang/StringBuilder;

    const-string v9, "select * from cart where pid="

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    const/4 v9, 0x0

    .line 1122
    invoke-virtual {v7, v8, v9}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v7

    iput-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    .line 1124
    const/4 v6, 0x0

    .line 1125
    .local v6, "pnum":I
    const/4 v0, 0x1

    .line 1126
    .local v0, "checkgd":Z
    const/4 v2, 0x0

    .line 1127
    .local v2, "goodscostone":F
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    if-eqz v7, :cond_3

    .line 1128
    :goto_1
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v7}, Landroid/database/Cursor;->moveToNext()Z

    move-result v7

    if-nez v7, :cond_2

    .line 1138
    :goto_2
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v7}, Landroid/database/Cursor;->close()V

    .line 1140
    add-int/lit8 v4, v6, -0x1

    .line 1141
    .local v4, "newgoodcount":I
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1142
    const/4 v7, 0x1

    if-ge v4, v7, :cond_4

    .line 1143
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v8, "cart"

    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "pid = \'"

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "\'"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    const/4 v10, 0x0

    invoke-virtual {v7, v8, v9, v10}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1149
    :goto_3
    const/4 v7, 0x1

    if-ge v4, v7, :cond_1

    .line 1151
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_del:Landroid/widget/ImageView;

    const/16 v8, 0x8

    invoke-virtual {v7, v8}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1152
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    const/16 v8, 0x8

    invoke-virtual {v7, v8}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1153
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_bag:Landroid/widget/TextView;

    const-string v8, "0.0"

    invoke-virtual {v7, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1156
    :cond_1
    iget v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    sub-float/2addr v7, v2

    iput v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1157
    iget v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    add-int/lit8 v7, v7, -0x1

    iput v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    .line 1158
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_num:Landroid/widget/TextView;

    iget v8, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    invoke-static {v8}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1159
    iget v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    const/high16 v8, 0x42c80000    # 100.0f

    mul-float/2addr v7, v8

    invoke-static {v7}, Ljava/lang/Math;->round(F)I

    move-result v7

    int-to-float v7, v7

    const/high16 v8, 0x42c80000    # 100.0f

    div-float/2addr v7, v8

    iput v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1160
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total:Landroid/widget/TextView;

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget v9, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    invoke-static {v9}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    .line 1129
    .end local v4    # "newgoodcount":I
    :cond_2
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    iget-object v8, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    const-string v9, "pnum"

    invoke-interface {v8, v9}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v8

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Integer;->intValue()I

    move-result v6

    .line 1130
    const/4 v0, 0x0

    .line 1131
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    iget-object v8, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    .line 1132
    const-string v9, "goodscost"

    invoke-interface {v8, v9}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v8

    .line 1131
    invoke-interface {v7, v8}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Float;->floatValue()F

    move-result v1

    .line 1133
    .local v1, "dajia":F
    const/high16 v7, 0x42c80000    # 100.0f

    mul-float/2addr v7, v1

    invoke-static {v7}, Ljava/lang/Math;->round(F)I

    move-result v7

    int-to-float v7, v7

    const/high16 v8, 0x42c80000    # 100.0f

    div-float v2, v7, v8

    goto/16 :goto_1

    .line 1136
    .end local v1    # "dajia":F
    :cond_3
    const/4 v0, 0x1

    goto/16 :goto_2

    .line 1145
    .restart local v4    # "newgoodcount":I
    :cond_4
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    const-string v8, "pnum"

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v9

    invoke-virtual {v7, v8, v9}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1146
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v8, "cart"

    iget-object v9, p0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "pid = \'"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "\'"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    const/4 v11, 0x0

    invoke-virtual {v7, v8, v9, v10, v11}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto/16 :goto_3
.end method

.method public eventClick(Ljava/lang/String;)V
    .locals 3
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 1605
    const-string v0, "TAG"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "-----:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1607
    return-void
.end method

.method public getAll()V
    .locals 21

    .prologue
    .line 1371
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 1373
    .local v2, "GoodsBeans":Ljava/util/List;, "Ljava/util/List<Lbean/GoodsBean;>;"
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    move-object/from16 v18, v0

    .line 1374
    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "select * from cart where shopid="

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->shopid:Ljava/lang/String;

    move-object/from16 v20, v0

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    const/16 v20, 0x0

    .line 1373
    invoke-virtual/range {v18 .. v20}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v4

    .line 1376
    .local v4, "cursor":Landroid/database/Cursor;
    :goto_0
    invoke-interface {v4}, Landroid/database/Cursor;->moveToNext()Z

    move-result v18

    if-nez v18, :cond_0

    .line 1404
    const/4 v11, 0x0

    .line 1405
    .local v11, "i":I
    const-string v15, "0"

    .line 1406
    .local v15, "n":Ljava/lang/String;
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_1
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_3

    .line 1410
    const/4 v12, 0x0

    .line 1411
    .local v12, "j":F
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_2
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_5

    .line 1417
    const/4 v13, 0x0

    .line 1418
    .local v13, "k":I
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_3
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_7

    .line 1423
    const/4 v14, 0x0

    .line 1424
    .local v14, "m":F
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_4
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_9

    .line 1429
    add-int v18, v11, v13

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    .line 1430
    add-float v18, v12, v14

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1431
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_num:Landroid/widget/TextView;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    move/from16 v19, v0

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1432
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    mul-float v18, v18, v19

    invoke-static/range {v18 .. v18}, Ljava/lang/Math;->round(F)I

    move-result v18

    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    div-float v18, v18, v19

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 1433
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total:Landroid/widget/TextView;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    move/from16 v19, v0

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1434
    return-void

    .line 1377
    .end local v11    # "i":I
    .end local v12    # "j":F
    .end local v13    # "k":I
    .end local v14    # "m":F
    .end local v15    # "n":Ljava/lang/String;
    :cond_0
    new-instance v8, Lbean/GoodsBean;

    invoke-direct {v8}, Lbean/GoodsBean;-><init>()V

    .line 1378
    .local v8, "goodsBean":Lbean/GoodsBean;
    const-string v18, "goodsid"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 1379
    .local v7, "goodid":Ljava/lang/String;
    const-string v18, "shopid"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v17

    .line 1381
    .local v17, "shopid":Ljava/lang/String;
    const-string v18, "goodsname"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    .line 1380
    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v10

    .line 1382
    .local v10, "goodsname":Ljava/lang/String;
    const-string v19, "goodsname----------------------------"

    .line 1383
    if-eqz v10, :cond_1

    move-object/from16 v18, v10

    .line 1382
    :goto_5
    move-object/from16 v0, v19

    move-object/from16 v1, v18

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1385
    const-string v18, "goodscount"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 1386
    .local v3, "count":Ljava/lang/String;
    const-string v19, "goodscount----------------------------"

    .line 1387
    if-eqz v3, :cond_2

    move-object/from16 v18, v3

    .line 1386
    :goto_6
    move-object/from16 v0, v19

    move-object/from16 v1, v18

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1389
    const-string v18, "goodscost"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    .line 1388
    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    .line 1390
    .local v9, "goodscost":Ljava/lang/String;
    const-string v18, "pid"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v16

    .line 1391
    .local v16, "pid":Ljava/lang/String;
    const-string v18, "pnum"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 1393
    .local v6, "ggnum":Ljava/lang/String;
    invoke-virtual {v8, v7}, Lbean/GoodsBean;->setId(Ljava/lang/String;)V

    .line 1394
    move-object/from16 v0, v17

    invoke-virtual {v8, v0}, Lbean/GoodsBean;->setShopid(Ljava/lang/String;)V

    .line 1395
    invoke-virtual {v8, v10}, Lbean/GoodsBean;->setname(Ljava/lang/String;)V

    .line 1396
    invoke-virtual {v8, v3}, Lbean/GoodsBean;->setcounts(Ljava/lang/String;)V

    .line 1397
    invoke-static {v9}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Float;->floatValue()F

    move-result v18

    move/from16 v0, v18

    invoke-virtual {v8, v0}, Lbean/GoodsBean;->setcost(F)V

    .line 1398
    move-object/from16 v0, v16

    invoke-virtual {v8, v0}, Lbean/GoodsBean;->setGgid(Ljava/lang/String;)V

    .line 1399
    invoke-virtual {v8, v6}, Lbean/GoodsBean;->setGgnum(Ljava/lang/String;)V

    .line 1401
    invoke-interface {v2, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    .line 1383
    .end local v3    # "count":Ljava/lang/String;
    .end local v6    # "ggnum":Ljava/lang/String;
    .end local v9    # "goodscost":Ljava/lang/String;
    .end local v16    # "pid":Ljava/lang/String;
    :cond_1
    const-string v18, "0"

    goto :goto_5

    .line 1387
    .restart local v3    # "count":Ljava/lang/String;
    :cond_2
    const-string v18, "0"

    goto :goto_6

    .line 1406
    .end local v3    # "count":Ljava/lang/String;
    .end local v7    # "goodid":Ljava/lang/String;
    .end local v8    # "goodsBean":Lbean/GoodsBean;
    .end local v10    # "goodsname":Ljava/lang/String;
    .end local v17    # "shopid":Ljava/lang/String;
    .restart local v11    # "i":I
    .restart local v15    # "n":Ljava/lang/String;
    :cond_3
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 1407
    .local v5, "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-nez v18, :cond_4

    invoke-virtual {v5}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v18

    :goto_7
    invoke-static/range {v18 .. v18}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Integer;->intValue()I

    move-result v18

    add-int v11, v11, v18

    goto/16 :goto_1

    :cond_4
    move-object/from16 v18, v15

    goto :goto_7

    .line 1411
    .end local v5    # "e":Lbean/GoodsBean;
    .restart local v12    # "j":F
    :cond_5
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 1412
    .restart local v5    # "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getcost()F

    move-result v20

    .line 1413
    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-nez v18, :cond_6

    invoke-virtual {v5}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v18

    :goto_8
    invoke-static/range {v18 .. v18}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Float;->floatValue()F

    move-result v18

    mul-float v18, v18, v20

    add-float v12, v12, v18

    goto/16 :goto_2

    :cond_6
    move-object/from16 v18, v15

    goto :goto_8

    .line 1418
    .end local v5    # "e":Lbean/GoodsBean;
    .restart local v13    # "k":I
    :cond_7
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 1419
    .restart local v5    # "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-eqz v18, :cond_8

    invoke-virtual {v5}, Lbean/GoodsBean;->getGgnum()Ljava/lang/String;

    move-result-object v18

    :goto_9
    invoke-static/range {v18 .. v18}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Integer;->intValue()I

    move-result v18

    add-int v13, v13, v18

    goto/16 :goto_3

    :cond_8
    move-object/from16 v18, v15

    goto :goto_9

    .line 1424
    .end local v5    # "e":Lbean/GoodsBean;
    .restart local v14    # "m":F
    :cond_9
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 1425
    .restart local v5    # "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getcost()F

    move-result v20

    .line 1426
    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-eqz v18, :cond_a

    invoke-virtual {v5}, Lbean/GoodsBean;->getGgnum()Ljava/lang/String;

    move-result-object v18

    :goto_a
    invoke-static/range {v18 .. v18}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Float;->floatValue()F

    move-result v18

    mul-float v18, v18, v20

    add-float v14, v14, v18

    goto/16 :goto_4

    :cond_a
    move-object/from16 v18, v15

    goto :goto_a
.end method

.method public getShopSource()Z
    .locals 1

    .prologue
    .line 1195
    new-instance v0, Lcom/example/m6wmr/DishesParticularActivity$5;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/DishesParticularActivity$5;-><init>(Lcom/example/m6wmr/DishesParticularActivity;)V

    .line 1365
    invoke-virtual {v0}, Lcom/example/m6wmr/DishesParticularActivity$5;->start()V

    .line 1366
    const/4 v0, 0x0

    return v0
.end method

.method public getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;
    .locals 5
    .param p1, "pos"    # I
    .param p2, "listView"    # Landroid/widget/ListView;

    .prologue
    .line 1917
    invoke-virtual {p2}, Landroid/widget/ListView;->getFirstVisiblePosition()I

    move-result v1

    .line 1919
    .local v1, "firstListItemPosition":I
    invoke-virtual {p2}, Landroid/widget/ListView;->getChildCount()I

    move-result v3

    .line 1918
    add-int/2addr v3, v1

    add-int/lit8 v2, v3, -0x1

    .line 1921
    .local v2, "lastListItemPosition":I
    if-lt p1, v1, :cond_0

    if-le p1, v2, :cond_1

    .line 1922
    :cond_0
    invoke-virtual {p2}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v3

    const/4 v4, 0x0

    invoke-interface {v3, p1, v4, p2}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 1925
    :goto_0
    return-object v3

    .line 1924
    :cond_1
    sub-int v0, p1, v1

    .line 1925
    .local v0, "childIndex":I
    invoke-virtual {p2, v0}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    goto :goto_0
.end method

.method public initImages(Ljava/util/List;)V
    .locals 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lbean/Shopimg;",
            ">;)V"
        }
    .end annotation

    .prologue
    .local p1, "listcx2":Ljava/util/List;, "Ljava/util/List<Lbean/Shopimg;>;"
    const/16 v12, 0xc

    const/4 v11, 0x5

    const/4 v10, 0x0

    const/4 v8, -0x1

    .line 1477
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->viewList:Ljava/util/List;

    .line 1478
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->dotViewsList:Ljava/util/List;

    .line 1480
    new-instance v5, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v5, v8, v8}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .line 1481
    .local v5, "params":Landroid/view/ViewGroup$LayoutParams;
    const v7, 0x7f0c006a

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/LinearLayout;

    .line 1482
    .local v6, "v_LinearLayout":Landroid/widget/LinearLayout;
    const/4 v2, 0x0

    .line 1483
    .local v2, "k":I
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v7

    if-lt v0, v7, :cond_0

    .line 1505
    return-void

    .line 1485
    :cond_0
    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 1486
    .local v1, "imageView":Landroid/widget/ImageView;
    invoke-virtual {v1, v5}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1487
    sget-object v7, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v7}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 1489
    iget-object v8, p0, Lcom/example/m6wmr/DishesParticularActivity;->imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lbean/Shopimg;

    invoke-virtual {v7}, Lbean/Shopimg;->getImg()Ljava/lang/String;

    move-result-object v7

    invoke-static {}, Lcom/example/m6wmr/DishesParticularActivity;->getDefaultOptions()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v9

    invoke-virtual {v8, v7, v1, v9}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 1490
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->viewList:Ljava/util/List;

    invoke-interface {v7, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 1493
    new-instance v4, Landroid/view/View;

    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    invoke-direct {v4, v7}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 1494
    .local v4, "myview":Landroid/view/View;
    invoke-virtual {v4, v2}, Landroid/view/View;->setId(I)V

    .line 1495
    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v3, v12, v12}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 1496
    .local v3, "lp":Landroid/widget/LinearLayout$LayoutParams;
    invoke-virtual {v3, v11, v10, v11, v10}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 1497
    invoke-virtual {v4, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1498
    const v7, 0x7f020050

    invoke-virtual {v4, v7}, Landroid/view/View;->setBackgroundResource(I)V

    .line 1499
    invoke-virtual {v6, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 1501
    iget-object v7, p0, Lcom/example/m6wmr/DishesParticularActivity;->dotViewsList:Ljava/util/List;

    invoke-interface {v7, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 1503
    add-int/lit8 v2, v2, 0x1

    .line 1483
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 3
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 1439
    invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    .line 1441
    const/16 v1, 0x4ce

    if-ne p1, v1, :cond_0

    .line 1443
    const/4 v1, 0x1

    if-ne p2, v1, :cond_0

    .line 1445
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 1446
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "shopid"

    iget-object v2, p0, Lcom/example/m6wmr/DishesParticularActivity;->shopid:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1447
    const-string v1, "shopname"

    iget-object v2, p0, Lcom/example/m6wmr/DishesParticularActivity;->shopname:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1448
    iget-object v1, p0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    const-class v2, Lcom/example/m6wmr/CarOrderActivity;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 1449
    invoke-virtual {p0, v0}, Lcom/example/m6wmr/DishesParticularActivity;->startActivity(Landroid/content/Intent;)V

    .line 1455
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 11
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    const/16 v10, 0x8

    const/4 v9, 0x0

    const v8, -0xd53e87

    .line 151
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 152
    const v6, 0x7f030013

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/DishesParticularActivity;->setContentView(I)V

    .line 153
    invoke-virtual {p0}, Lcom/example/m6wmr/DishesParticularActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v6

    check-cast v6, Lmyapp/MyApp;

    iput-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->m:Lmyapp/MyApp;

    .line 154
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 155
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    iput-object p0, p0, Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;

    .line 156
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 157
    new-instance v6, Ldbclass/DBOpenHelper;

    invoke-direct {v6, p0}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->helper:Ldbclass/DBOpenHelper;

    .line 158
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v6}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 159
    new-instance v6, Landroid/content/ContentValues;

    invoke-direct {v6}, Landroid/content/ContentValues;-><init>()V

    iput-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->cv:Landroid/content/ContentValues;

    .line 160
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    iput-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->tempgd:Ljava/util/List;

    .line 161
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    iput-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->goodsls:Ljava/util/List;

    .line 162
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    iput-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->listdet:Ljava/util/List;

    .line 164
    iput v9, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I

    .line 165
    const/4 v6, 0x0

    iput v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->sumcartcost:F

    .line 166
    invoke-direct {p0}, Lcom/example/m6wmr/DishesParticularActivity;->initData()V

    .line 167
    invoke-direct {p0}, Lcom/example/m6wmr/DishesParticularActivity;->initView()V

    .line 169
    invoke-virtual {p0}, Lcom/example/m6wmr/DishesParticularActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    .line 170
    .local v3, "intent":Landroid/content/Intent;
    const-string v6, "goodsid"

    invoke-virtual {v3, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->goodsid:Ljava/lang/String;

    .line 171
    const-string v6, "shopid"

    invoke-virtual {v3, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->shopid:Ljava/lang/String;

    .line 172
    const-string v6, "shopname"

    invoke-virtual {v3, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->shopname:Ljava/lang/String;

    .line 173
    const-string v6, "open"

    invoke-virtual {v3, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_2

    const-string v6, "open"

    invoke-virtual {v3, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    :goto_0
    iput-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->open:Ljava/lang/String;

    .line 174
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->open:Ljava/lang/String;

    const-string v7, "0"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_0

    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->open:Ljava/lang/String;

    const-string v7, "1"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_0

    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->open:Ljava/lang/String;

    const-string v7, "4"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 175
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_add:Landroid/widget/ImageView;

    invoke-virtual {v6, v10}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 176
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_del:Landroid/widget/ImageView;

    invoke-virtual {v6, v10}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 183
    :goto_1
    invoke-virtual {p0}, Lcom/example/m6wmr/DishesParticularActivity;->getShopSource()Z

    .line 184
    const/high16 v6, 0x7f0c0000

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 185
    .local v4, "top":Landroid/widget/LinearLayout;
    const v6, 0x7f0c007b

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/DishesParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 186
    .local v5, "tv_pay":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v6

    const-string v7, "1"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 187
    const v6, 0x7f070026

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 188
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->search:Landroid/widget/RelativeLayout;

    const v7, 0x7f020021

    invoke-virtual {v6, v7}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 189
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_add:Landroid/widget/ImageView;

    const v7, 0x7f02001b

    invoke-virtual {v6, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 190
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_del:Landroid/widget/ImageView;

    const v7, 0x7f020001

    invoke-virtual {v6, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 191
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->llp:Landroid/widget/LinearLayout;

    const v7, 0x7f02001e

    invoke-virtual {v6, v7}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 192
    invoke-virtual {v5, v8}, Landroid/widget/TextView;->setTextColor(I)V

    .line 193
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total:Landroid/widget/TextView;

    invoke-virtual {v6, v8}, Landroid/widget/TextView;->setTextColor(I)V

    .line 194
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_total1:Landroid/widget/TextView;

    invoke-virtual {v6, v8}, Landroid/widget/TextView;->setTextColor(I)V

    .line 196
    :cond_1
    new-instance v6, Lcom/example/m6wmr/DishesParticularActivity$1;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/DishesParticularActivity$1;-><init>(Lcom/example/m6wmr/DishesParticularActivity;)V

    sput-object v6, Lcom/example/m6wmr/DishesParticularActivity;->h:Landroid/os/Handler;

    .line 599
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_2
    const/16 v6, 0x14

    if-lt v2, v6, :cond_4

    .line 606
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->llp:Landroid/widget/LinearLayout;

    new-instance v7, Lcom/example/m6wmr/DishesParticularActivity$2;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/DishesParticularActivity$2;-><init>(Lcom/example/m6wmr/DishesParticularActivity;)V

    invoke-virtual {v6, v7}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 656
    invoke-direct {p0}, Lcom/example/m6wmr/DishesParticularActivity;->setoncliclistner()V

    .line 658
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->search:Landroid/widget/RelativeLayout;

    new-instance v7, Lcom/example/m6wmr/DishesParticularActivity$3;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/DishesParticularActivity$3;-><init>(Lcom/example/m6wmr/DishesParticularActivity;)V

    invoke-virtual {v6, v7}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 723
    return-void

    .line 173
    .end local v2    # "i":I
    .end local v4    # "top":Landroid/widget/LinearLayout;
    .end local v5    # "tv_pay":Landroid/widget/TextView;
    :cond_2
    const-string v6, "1"

    goto/16 :goto_0

    .line 179
    :cond_3
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_add:Landroid/widget/ImageView;

    invoke-virtual {v6, v9}, Landroid/widget/ImageView;->setVisibility(I)V

    goto/16 :goto_1

    .line 600
    .restart local v2    # "i":I
    .restart local v4    # "top":Landroid/widget/LinearLayout;
    .restart local v5    # "tv_pay":Landroid/widget/TextView;
    :cond_4
    new-instance v1, Lbean/EvaluateBean;

    invoke-direct {v1}, Lbean/EvaluateBean;-><init>()V

    .line 601
    .local v1, "evaluateBean":Lbean/EvaluateBean;
    iget-object v6, p0, Lcom/example/m6wmr/DishesParticularActivity;->evaluateBeans:Ljava/util/ArrayList;

    invoke-virtual {v6, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 599
    add-int/lit8 v2, v2, 0x1

    goto :goto_2
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 822
    invoke-virtual {p0}, Lcom/example/m6wmr/DishesParticularActivity;->getAll()V

    .line 823
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 824
    return-void
.end method

.method public search(I)V
    .locals 8
    .param p1, "position"    # I

    .prologue
    const/4 v7, 0x0

    const/16 v6, 0x8

    .line 999
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->listpro:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-ge v3, p1, :cond_1

    .line 1000
    const-string v3, "\u63d0\u793a\u4fe1\u606f"

    const-string v4, "\u5e93\u5b58\u4e0d\u8db3"

    invoke-static {p0, v3, v4}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 1036
    :cond_0
    :goto_0
    return-void

    .line 1004
    :cond_1
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->listpro:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-eqz v3, :cond_0

    .line 1008
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->listpro:Ljava/util/List;

    invoke-interface {v3, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/ProductBean;

    .line 1010
    .local v0, "mygoods":Lbean/ProductBean;
    invoke-virtual {v0}, Lbean/ProductBean;->getId()Ljava/lang/String;

    move-result-object v1

    .line 1012
    .local v1, "pid":Ljava/lang/String;
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v3}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "select * from cart where pid="

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    .line 1013
    const/4 v2, 0x0

    .line 1015
    .local v2, "pnum":I
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->getCount()I

    move-result v3

    if-lez v3, :cond_4

    .line 1016
    :goto_1
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->moveToNext()Z

    move-result v3

    if-nez v3, :cond_3

    .line 1019
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    .line 1020
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1021
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_del:Landroid/widget/ImageView;

    invoke-virtual {v3, v7}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1022
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    invoke-virtual {v3, v7}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1029
    :goto_2
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->open:Ljava/lang/String;

    const-string v4, "0"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_2

    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->open:Ljava/lang/String;

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_2

    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->open:Ljava/lang/String;

    const-string v4, "4"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 1030
    :cond_2
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_add:Landroid/widget/ImageView;

    invoke-virtual {v3, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1031
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_del:Landroid/widget/ImageView;

    invoke-virtual {v3, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    goto/16 :goto_0

    .line 1017
    :cond_3
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity;->cursor:Landroid/database/Cursor;

    const-string v5, "pnum"

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v3, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v2

    goto :goto_1

    .line 1025
    :cond_4
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->iv_del:Landroid/widget/ImageView;

    invoke-virtual {v3, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1026
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity;->tv_count:Landroid/widget/TextView;

    invoke-virtual {v3, v6}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_2
.end method
